import request from '@/utils/request'

//获取商品列表数据
export function reqGetTrademarkList(page, limit) {
  return request({
    url: `/admin/product/baseTrademark/${page}/${limit}`,
    method: 'get'
  })
}

//添加一个商品
export function reqAddOneTrademark(data) {
  return request({
    url: '/admin/product/baseTrademark/save',
    method: 'post',
    data
  })
}

//删除一条数据
export function reqDelOneTrademark(id) {
  return request({
    url: `/admin/product/baseTrademark/remove/${id}`,
    method: 'delete'
  })
}

//根据id查询要更新的数据
export function reqGetOneTrademark(id) {
  return request({
    url: `/admin/product/baseTrademark/get/${id}`,
    method: 'get'
  })
}

//更新数据
export function reqUpdateOneTrademark(tmfrom) {
  return request({
    url: `/admin/product/baseTrademark/update`,
    method: 'put',
    data: tmfrom
  })
}
